import { ref, shallowRef } from "vue";

import heightMask from '@/pages/terrainrtsView/HeightMask.vue';
import waterMask from '@/pages/terrainrtsView/WaterMask.vue';
import clipPolygon from '@/pages/terrainrtsView/ClipPolygon.vue';


export const terrainrtsMenuList = ref<any[]>([
    {
        id: "location",
        name: "定位",
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/location.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/location_hover.png', import.meta.url).href,
    },
    {
        id: "refresh",
        name: "刷新",
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/refresh.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/refresh_hover.png', import.meta.url).href,
    },
    {
        type: "divider",
    },
    {
        id: "heightMask",
        name: "高程蒙版",
        com: shallowRef(heightMask),
        status: "none",
        icon: new URL('../../../assets/baseSceneConfig/terrain.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/baseSceneConfig/terrain_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/baseSceneConfig/terrain_hover.png', import.meta.url).href,
        isOnly: true,
    },
    {
        id: "waterMask",
        name: "水面蒙版",
        com: shallowRef(waterMask),
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/mend.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/cimrts/baseInfo/mend_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/mend_hover.png', import.meta.url).href,
        isOnly: true,
    },
    {
        id: "clipPolygon",
        name: "裁剪多边形",
        com: shallowRef(clipPolygon),
        status: "none",
        icon: new URL('../../../assets/terrainrts/clip.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/terrainrts/clip_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/terrainrts/clip_hover.png', import.meta.url).href,
        isOnly: true,
    },
])

